package com.qst.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qst.order.domain.ProductSpecPrice;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ProductSpecPriceMapper extends BaseMapper<ProductSpecPrice> {
    // 根据商品ID删除规格价格
    @Delete("DELETE FROM t_product_spec_price WHERE product_id = #{productId}")
    int deleteByProductId(Integer productId);

}
